Carbon


CallInScrapPromises

Header: Scrap.h Carbon status: Supported

Forces all promised flavors to be supplied.

OSStatus CallInScrapPromises ();
function result

A result code.

DISCUSSION

If your application promises at least one flavor and it does not adopt the new event model, you should call CallInScrapPromises when your application is about to quit. If your application promises no flavors, there is no need to call this function, and if your application adopts the new event model, this function will be called for you automatically.

It doesn't hurt to call CallInScrapPromises more than once, though promise-keeper functions may be asked to keep promises they already tried and failed.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)